<template>
    <div class="error-div-style">
        <img src="@/assets/image/logo.png" alt="">
        <p>页面找不到了。。。</p>
        <a @click="back">返回上一页</a>
    </div>
</template>

<script>
export default {
  methods: {
    back () {
      if (this.$route.params.to) {
        this.$router.push({path: this.$route.params.to})
      } else {
        this.$router.go(-1)
      }
    }
  }
}
</script>
